<include file="./Application/Admin/View/index/nav.html" />
<script type="text/javascript">
  function firm(){
    if (confirm('你真的要删除吗？')) {
      return true;
    } else {
      return false;
    }
  }
</script>
        <div id="page-wrapper">
        <div class="col-md-12 graphs">
	   <div class="xs" style="min-height: 460px;">
  	 <h3>分类管理</h3>
   <div class="panel-body1">
   <table class="table nth-child table-striped table-hover">
     <thead>
        <tr>
          <th>#</th>
          <th>分类名称</th>
          <th width="20%">操作</th>
        </tr>
      </thead>
      <tbody>
        <foreach name="cateinfo" item="c">
        <tr>
          <th scope="row">{$c.id}</th>
          <td>{$c.name}</td>
          <td><a href="{:U('admin/book/delcate',array('id'=>$c['id']))}" onclick="return firm();">删除</a></td>
        </tr>
        </foreach>
      </tbody>
    </table>
    </div>
  </div>
<include file="./Application/Admin/View/index/footer.html" />